package com.guiguli.Function;

public class Function01 {
    public static void main(String[] args) {
    print(10,13);
    print();
    System.out.println(max(1.2,3.1));
    show(1);
    show(1.2);
    }
    //定义一个方法
    public static void print(int a,int b){
        System.out.println(a+b);
    }
    public static void print(){
        for(int i=0;i<10;i++){
            System.out.println("6666");
        }
    }
    public  static double max(double a,double b){
        return a>b?a:b;
    }
    public  static  void show(double a){
        System.out.println(a);
    }
    public  static  void show(int a){
        System.out.println(a);
    }
}
